package com.example.boot2mybatis.lister;

import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class RunnerConfig {

    @Bean
    public ApplicationRunner applicationRunner(){

        return args -> {
            System.out.println("===ApplicationRunner=====运行了=====");
        };
    }

    @Bean
    public CommandLineRunner commandLineRunner(){
        return args -> {
            System.out.println("===CommandLineRunner=====运行了=====");
        };
    }
}

